<div id="repairOrder">
    <div class="box-panel">
        <div class="area-panel">
            <textarea id="content" placeholder="请填写意见及建议"></textarea>
        </div>

    </div>
    <div class="box-panel">
        <p style="text-align: center;font-size: 12px"><a href="tel:010-66579932">您可以联系010-66579009询问物业客服人员</a></p>
    </div>
    <div id="subOrder"> 提交</div>
</div>


<div class="ypfood-head">
    <div class="back-div" onClick="javascript :history.back(-1);">
        <img src="/statics/imgs/head-back.png?v=${params.ver}">
    </div>
    <div>
        <span class="title-span">您的意见及建议</span>
    </div>
</div>
<script>
    $(function () {
        $("#subOrder").bind("click", function () {
            if ($("#content").val() == "") {
                layer.open({content: "反馈意见不能为空", time: 2});
                return false;
            }
            var param = {};
            param.content = $("#content").val();
            json("/admin/option/saveUserOption.jspx", {param: JSON.stringify(param)}, function (data) {
                if (data.code == 0) {
                    layer.open({
                        content: "<div style='font-size: 16px;text-align: center;padding: 10px;'>提交成功！谢谢您的意见建议！</div>",
                        btn: ['返回首页'],
                        shadeClose: false,
                        yes: function () {
                            window.location.href = "/";
                        }
                    });
                }
            });
        });
    })
</script>